var Bookshelf = require('bookshelf');

var db = Bookshelf.initialize({
    client: 'sqlite3',
    connection: {
        filename: './db.sqlite'
    }
});

var Note = db.Model.extend({
    tableName: 'note'
});

User.forge({name: 'value'}).save().then(function() {
    // ...
});